package com.gagakuai.engine.impl.interceptor;

/*
 * @program: common-starters
 * @description: 命令对象拦截器:使用责任链模式
 * @author: houhong
 * @create: 2023-01-01 23:09
 */
public interface CommandInterceptor {

    <T> T execute(CommandConfig config,Command<T> command);

    CommandInterceptor getNext();

    void setNext(CommandInterceptor next);
}